/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package helpClasses;

import hibernate.Product;
import hibernate.RequestStatus;
import hibernate.User;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 *
 * @author aboyko
 */
public class ReportProperties {

    private List<Product> products;
    private List<User> users;
    private List<User> managers;
    private List<RequestStatus> statuses;
    private Date dateFrom;
    private Date dateTo;
    private String descripton;
    private String message;
    private boolean isCommon;
    private boolean FilterByCommon;

    public ReportProperties() {
        this.products = new ArrayList<Product>();
        this.users = new ArrayList<User>();
        this.managers = new ArrayList<User>();
        this.statuses = new ArrayList<RequestStatus>();
    }
    

    public void setDateFrom(Date dateFrom) {
        this.dateFrom = dateFrom;
    }

    public void setDateTo(Date dateTo) {
        this.dateTo = dateTo;
    }

    public void setDescripton(String descripton) {
        this.descripton = descripton;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setProducts(List<Product> products) {
        this.products.addAll(products);
    }

    public void setStatuses(List<RequestStatus> statuses) {
        this.statuses.addAll(statuses);
    }

    public void setUsers(List<User> users) {
        this.users.addAll(users);
    }

    public void setManagers(List<User> users) {
        this.managers.addAll(users);
    }

    public void setProduct(Product product) {
        products.add(product);
    }

    public void setStatus(RequestStatus requestStatus) {
        statuses.add(requestStatus);
    }

    public void setUser(User user) {
        users.add(user);
    }

    public void setManager(User user) {
        managers.add(user);
    }

    public void setFilterByCommon(boolean FilterByCommon) {
        this.FilterByCommon = FilterByCommon;
    }
    
    public void setIsCommon(boolean isCommon) {
        this.isCommon = isCommon;
    }

    public Date getDateFrom() {
        return dateFrom;
    }

    public Date getDateTo() {
        return dateTo;
    }

    public String getDescripton() {
        return descripton;
    }

    public List<User> getManagers() {
        return managers;
    }

    public String getMessage() {
        return message;
    }

    public List<Product> getProducts() {
        return products;
    }

    public List<RequestStatus> getStatuses() {
        return statuses;
    }

    public List<User> getUsers() {
        return users;
    }

    public boolean isCommon() {
        return isCommon;
    }

    public boolean isFilterByCommon() {
        return FilterByCommon;
    }

    
    
    

    public void clear() {
        products.clear();
        users.clear();
        statuses.clear();
        managers.clear();
        dateFrom   = null;
        dateTo     = null;
        descripton = null;
        message    = null;
        isCommon   = false;
    }
}
